import com.lijinjiang.JDatePicker;
import com.lijinjiang.beautyeye.BeautyEyeLNFHelper;
import com.lijinjiang.mode.PickerMode;

import javax.swing.*;

/**
 * @Description 测试案例
 * @Author 03010430
 * @Date 2024-10-29 15:27
 */
public class PickMinuteDemo {
    public static void main(String[] args) {
        try {
            /*
             * 设置本属性将改变窗口边框样式定义
             * 系统默认样式 : osLookAndFeelDecorated
             * 强立体半透明 : translucencyAppleLike
             * 弱立体半透明 : translucencySmallShadow
             * 普通不透明 : generalNoTranslucencyShadow
             */
            BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow;
            BeautyEyeLNFHelper.launchBeautyEyeLNF();
            //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (Exception ignored) {
        }
        JFrame frame = new JFrame();
        frame.setTitle("选择分");
        frame.setSize(400, 360);

        JDatePicker picker = new JDatePicker(PickerMode.MINUTE);//选择分

        frame.add(picker);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
}
